package auth

import (
	"github.com/danfwing/sd-project/pkg/utils"
	"github.com/gin-gonic/gin"
)

// RegisterRoutes 注册安全自查模块的路由
func RegisterRoutes(v1 *gin.RouterGroup) {
	var api AuthHandle
	authGroup := v1.Group("/auth")
	{
		authGroup.POST("/register", utils.API(api.Register))
		authGroup.POST("/login", utils.API(api.Login))
		//获取短信验证码
		authGroup.POST("/sms/send", utils.API(api.SendCode))
	}
}
